package com.example.zhunongzonghe.beans;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName zn_post_like
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZnPostLikeBean implements Serializable {
    /**
     * 主键,点赞表
     */
    private Integer id;

    /**
     * 点赞的帖子
     */
    private Integer postId;

    /**
     * 点赞的用户
     */
    private Integer userId;

    /**
     * 点赞状态，0为未点赞，1为点赞
     */
    private Integer likeStatus;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}